Skip to content

fix: upgrade nexus-publish to 2.0.0 for Maven Central compatibility - #317

Merged
didiergarcia merged 1 commit into
mainfrom
fix/maven-central-publish-2.0
Jul 27, 2026
Merged

fix: upgrade nexus-publish to 2.0.0 for Maven Central compatibility#317
didiergarcia merged 1 commit into
mainfrom
fix/maven-central-publish-2.0

Conversation

@didiergarcia

Copy link
Copy Markdown
Contributor

Summary

  • Upgrades io.github.gradle-nexus.publish-plugin from 1.1.0 to 2.0.0 to fix compatibility with Maven Central's new OSSRH Staging API (ossrh-staging-api.central.sonatype.com)
  • Adds in-memory PGP signing support in mvn-publish.gradle (required by nexus-publish 2.x)
  • Bumps VERSION_NAME to 1.26.0 / VERSION_CODE to 1260

Problem

The 1.x plugin calls the legacy oss.sonatype.org staging API which no longer works with our Central Portal account, causing:

Failed to find staging profile for package group: com.segment.analytics.kotlin

The promote.gradle URLs were already updated to point at the new portal endpoints — only the plugin version was stale.

Test plan

  • Run ./scripts/release.sh and confirm it gets past :initializeSonatypeStagingRepository
  • Confirm artifact publishes to Maven Central under com.segment.analytics.kotlin:1.26.0

- Upgrade io.github.gradle-nexus.publish-plugin from 1.1.0 to 2.0.0
- Add in-memory PGP signing support in mvn-publish.gradle
- The URLs in promote.gradle were already correct; only the plugin version was stale
@didiergarcia
didiergarcia force-pushed the fix/maven-central-publish-2.0 branch from 02946dc to ca8f5ad Compare July 27, 2026 17:20
@didiergarcia
didiergarcia merged commit f25b651 into main Jul 27, 2026
9 checks passed
@didiergarcia
didiergarcia deleted the fix/maven-central-publish-2.0 branch July 27, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants